FROM tomcat:8
MAINTAINER LangK
VOLUME /usr/local/tomcat/
EXPOSE 20040
COPY sSysManagerV1-1.1.Snapshot.war /usr/local/tomcat/webapp/ROOT.war
COPY ./server.xml /usr/local/tomcat/conf/server.xml
ENV JAVA_OPTS=" \
-Xms512m \
-Xmx512m \
-XX:MaxMetaspaceSize=128m \
-XX:CompressedClassSpaceSize=128m \
-Xss32m \
-Xmn128m \
-XX:InitialCodeCacheSize=64m \
-XX:ReservedCodeCacheSize=128m \
-XX:MaxDirectMemorySize=128m"
ENTRYPOINT ["/usr/local/tomcat/bin/catalina.sh","run"]